﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Field.aspx.cs" Inherits="GreatB2C.Web.Manage.SystemSet.Contents.Field" %>

<%@ Register src="../../../Controls/DynamicRegion.ascx" tagname="DynamicRegion" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>字段添加/修改</title>
    <link href="../../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/MasterPage.css" type="text/css"
        rel="stylesheet" />

    <script type="text/javascript" src="../../../Resource/Script/pagebase.js"></script>

    <link rel="stylesheet" type="text/css" href="../../../Resource/jqueryEasyui/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../../../Resource/jqueryEasyui/themes/icon.css" />

    <script type="text/javascript" src="../../../Resource/jqueryEasyui/jquery-1.4.4.min.js"></script>

    <script type="text/javascript" src="../../../Resource/jqueryEasyui/jquery.easyui.min.js"></script>

    <script type="text/javascript" src="../../../Resource/jqueryEasyui/locale/easyui-lang-zh_CN.js"></script>

    <script src="../../../Resource/Script/jquery.validate.min.js" type="text/javascript"></script>
    
	<script type="text/javascript" src="../../../Resource/Script/iColorPicker.js"></script>

    <script type="text/javascript">
        window.onload = function() {
            //身份证验证
            jQuery.validator.addMethod("isIdCardNo", function(value, element) {
                return this.optional(element) || isIdCardNo(value);
            }, "请正确输入您的身份证号码");

            // 电话号码验证
            jQuery.validator.addMethod("isPhone", function(value, element) {
                vartel = /^(\d{3,4}-?)?\d{7,9}$/g;
                return this.optional(element) || (vartel.test(value));
            }, "请正确填写您的电话号码");

            //昵称验证
            jQuery.validator.addMethod("nickName", function(value, element) {
                return this.optional(element) || /^[\u0391-\uFFE5\w]+$/.test(value);
            }, "昵称只能由中文，英文字母、数字和下划线组成");

            //手机验证
            jQuery.validator.addMethod("isMobile", function(value, element) {
                varlength = value.length;
                varmobile = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
                return this.optional(element) || (length == 11 && varmobile.test(value));
            }, "请正确填写您的手机号码");

            // 邮政编码验证
            jQuery.validator.addMethod("isZipCode", function(value, element) {
                vartel = /^[0-9]{6}$/;
                return this.optional(element) || (vartel.test(value));
            }, "请正确填写您的邮政编码");

            // 一个正则表达式，只含有汉字、数字、字母、下划线不能以下划线开头和结尾
            jQuery.validator.addMethod("isField", function(value, element) {
                vartel = /^(?!_)(?!.*?_$)[a-zA-Z0-9_\u4e00-\u9fa5]+$/;
                return this.optional(element) || (vartel.test(value));
            }, "字段名称不符合要求");

            // URL地址验证
            jQuery.validator.addMethod("isURL", function(value, element) {
                vartel = "^((https|http|ftp|rtsp|mms)?://)"
                        + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" //ftp的user@  
                        + "(([0-9]{1,3}\.){3}[0-9]{1,3}" // IP形式的URL- 199.194.52.184  
                        + "|" // 允许IP和DOMAIN（域名） 
                        + "([0-9a-z_!~*'()-]+\.)*" // 域名- www.  
                        + "([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\." // 二级域名  
                        + "[a-z]{2,6})" // first level domain- .com or .museum  
                        + "(:[0-9]{1,4})?" // 端口- :80  
                        + "((/?)|" // a slash isn't required if there is no file name  
                        + "(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";
                return this.optional(element) || (vartel.test(value));
            }, "URL地址不符合要求");

            // validate signup form on keyup and submit
            $("#form1").validate({
                rules: {
                    txtFieldName: {
                        required: true,
                        isField: true
                    },
                    txtFieldAliax: {
                        required: true
                    },
                    txtTextMaxLength: {
                        required: true
                    },
                    txtTextSize: {
                        required: true
                    },
                    txtMultiTextWidth: {
                        required: true,
                        number: true
                    },
                    txtMultiTextRow: {
                        required: true,
                        number: true
                    },
                    txtEditorWidth: {
                        required: true
                    },
                    txtEditorHight: {
                        required: true
                    },
                    txtNumberMinLength: {
                        required: true,
                        number: true
                    },
                    txtNumberMaxlength: {
                        required: true,
                        number: true
                    },
                    ddlLookupTable: {
                        required: true
                    },
                    ddlLookupField: {
                        required: true
                    },
                    txtURLMaxLength: {
                        required: true
                    },
                    txtURLSize: {
                        required: true
                    },
                    txtURLDefaultValue: {
                        isURL: true
                    },
                    txtImageTextLength: {
                        required: true,
                        number: true
                    },
                    txtImageSize: {
                        required: true,
                        number: true
                    },
                    txtImageType: {
                        required: true
                    },
                    txtFileSizeField: {
                        required: true,
                        isField: true
                    },
                    txtFileSize: {
                        required: true,
                        number: true
                    },
                    txtFileType: {
                        required: true
                    },
                    txtAuthorSize: {
                        required: true,
                        number: true
                    },
                    txtSourceSize: {
                        required: true,
                        number: true
                    },
                    txtKeywordSize: {
                        required: true,
                        number: true
                    },
                    txtOperatingSystemSelectItem: {
                        required: true
                    },
                    txtOperatingSystemSize: {
                        required: true,
                        number: true
                    },
                    txtProducerSize: {
                        required: true,
                        number: true
                    },
                    txtTrademarkSize: {
                        required: true,
                        number: true
                    },
                    txtContentEditorWidth: {
                        required: true
                    },
                    txtContentEditorHight: {
                        required: true
                    },
                    txtUploadSize: {
                        required: true,
                        number: true
                    },
                    txtUploadImpType: {
                        required: true
                    },
                    txtUploadFlashType: {
                        required: true
                    },
                    txtUploadAnnexType: {
                        required: true
                    },
                    txtVirtualLinkWidth: {
                        required: true,
                        number: true
                    },
                    txtVirtualLinkRow: {
                        required: true,
                        number: true
                    },
                    txtDownServerWidth: {
                        required: true,
                        number: true
                    },
                    txtTitleMaxLength: {
                        required: true
                    },
                    txtTitleSize: {
                        required: true
                    },
                    txtMultiPhotoSize: {
                        required: true,
                        number: true
                    },
                    txtMultiPhotoExt: {
                        required: true
                    },
                    txtProperty: {
                        required: true
                    },
                    txtSelectUserSize: {
                        required: true,
                        number: true
                    }
                },
                messages: {
                    txtFieldName: {
                        required: "<font class='validatemsg'>* 请输入字段名称</font>",
                        isField: "<font class='validatemsg'>* 字段名称不符合要求</font>"
                    },
                    txtFieldAliax: {
                        required: "<font class='validatemsg'>* 请输入字段别名</font>"
                    },
                    txtTextMaxLength: {
                        required: "<font class='validatemsg'>* 请输入最大字符数</font>"
                    },
                    txtTextSize: {
                        required: "<font class='validatemsg'>* 请输入文本框长度</font>"
                    },
                    txtMultiTextWidth: {
                        required: "<font class='validatemsg'>* 请输入显示的宽度</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtMultiTextRow: {
                        required: "<font class='validatemsg'>* 请输入显示的高度</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtEditorWidth: {
                        required: "<font class='validatemsg'>* 请输入编辑器宽度</font>"
                    },
                    txtEditorHight: {
                        required: "<font class='validatemsg'>* 请输入编辑器高度</font>"
                    },
                    txtNumberMinLength: {
                        required: "<font class='validatemsg'>* 请输入最小值</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtNumberMaxlength: {
                        required: "<font class='validatemsg'>* 请输入最大值</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    ddlLookupTable: {
                        required: "<font class='validatemsg'>* 请选择获取信息来自模型</font>"
                    },
                    ddlLookupField: {
                        required: "<font class='validatemsg'>* 请选择模型对应信息表的字段</font>"
                    },
                    txtURLMaxLength: {
                        required: "<font class='validatemsg'>* 请输入最大字符数</font>"
                    },
                    txtURLSize: {
                        required: "<font class='validatemsg'>* 请输入文本框长度</font>"
                    },
                    txtURLDefaultValue: {
                        isURL: "<font class='validatemsg'>* 默认值格式正确，请输入正确的URL地址</font>"
                    },
                    txtImageTextLength: {
                        required: "<font class='validatemsg'>* 请输入图片文本框长度</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtImageSize: {
                        required: "<font class='validatemsg'>* 请输入允许的图片大小</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtImageType: {
                        required: "<font class='validatemsg'>* 请输入允许的图片类型</font>"
                    },
                    txtFileSizeField: {
                        required: "<font class='validatemsg'>* 请输入保存字段的名称</font>",
                        isField: "<font class='validatemsg'>* 字段名称不符合要求</font>"
                    },
                    txtFileSize: {
                        required: "<font class='validatemsg'>* 请输入允许的文件大小</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtFileType: {
                        required: "<font class='validatemsg'>* 请输入允许的文件类型</font>"
                    },
                    txtAuthorSize: {
                        required: "<font class='validatemsg'>* 请输入文本框长度</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtSourceSize: {
                        required: "<font class='validatemsg'>* 请输入文本框长度</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtKeywordSize: {
                        required: "<font class='validatemsg'>* 请输入文本框长度</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtOperatingSystemSelectItem: {
                        required: "<font class='validatemsg'>* 分行默认项不能为空</font>"
                    },
                    txtOperatingSystemSize: {
                        required: "<font class='validatemsg'>* 请输入文本框长度</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtProducerSize: {
                        required: "<font class='validatemsg'>* 请输入文本框长度</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtTrademarkSize: {
                        required: "<font class='validatemsg'>* 请输入文本框长度</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtContentEditorWidth: {
                        required: "<font class='validatemsg'>* 请输入编辑器宽度</font>"
                    },
                    txtContentEditorHight: {
                        required: "<font class='validatemsg'>* 请输入编辑器高度</font>"
                    },
                    txtUploadSize: {
                        required: "<font class='validatemsg'>* 请输入允许的文件大小</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtUploadImpType: {
                        required: "<font class='validatemsg'>* 请输入允许上传的图片类型</font>"
                    },
                    txtUploadFlashType: {
                        required: "<font class='validatemsg'>* Flash类型不能为空</font>"
                    },
                    txtUploadAnnexType: {
                        required: "<font class='validatemsg'>* 附件类型不能为空</font>"
                    },
                    txtVirtualLinkWidth: {
                        required: "<font class='validatemsg'>* 显示宽度不能为空</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtVirtualLinkRow: {
                        required: "<font class='validatemsg'>* 显示高度不能为空</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtDownServerWidth: {
                        required: "<font class='validatemsg'>* 文本框长度不能为空</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtTitleMaxLength: {
                        required: "<font class='validatemsg'>* 最大字符数不能为空</font>"
                    },
                    txtTitleSize: {
                        required: "<font class='validatemsg'>* 文本框长度不能为空</font>"
                    },
                    txtMultiPhotoSize: {
                        required: "<font class='validatemsg'>* 文件大小不能为空</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    },
                    txtMultiPhotoExt: {
                        required: "<font class='validatemsg'>* 文件类型不能为空</font>"
                    },
                    txtProperty: {
                        required: "<font class='validatemsg'>* 商品属性值不能为空</font>"
                    },
                    txtSelectUserSize: {
                        required: "<font class='validatemsg'>* 文本框长度不能为空</font>",
                        number: "<font class='validatemsg'>* 请输入合法的数字</font>"
                    }
                }
            });

            $('#txtOrderDate').datebox('enable');

        }

        function ChangetxtRegexRule() {
            var txtRegex = document.getElementById("txtRegexRule");
            var dropRegex = document.getElementById("ddlTextBoxRegexRule");
            var regexErrorMsg = document.getElementById("RegexErrorMsg");
            var dropRegexValue = dropRegex.options[dropRegex.selectedIndex].value;

            if (dropRegexValue == "") {
                txtRegex.style.display = "none";
                regexErrorMsg.style.display = "none";
                txtRegex.value = "";
            } else if (dropRegexValue == "Self") {
                txtRegex.style.display = "";
                regexErrorMsg.style.display = "";
                txtRegex.value = "";
            } else {
                regexErrorMsg.style.display = "";
                txtRegex.style.display = "";
                txtRegex.value = dropRegexValue;
            }
        }

        function ReturnList() {
            var ModelType = GetParamValue("ModelType");
            var ModelId = GetParamValue("ModelId");
            var ModelName = GetParamValue("ModelName");

            location.replace('FieldManage.aspx?ModelType=' + ModelType + '&ModelId=' + ModelId + '&ModelName=' + ModelName);
        }

    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="SmContent4" runat="server" ScriptMode="Release" EnablePartialRendering="true">
    </asp:ScriptManager>

    <script type="text/javascript">
        function SetLitFieldName(value) {
            document.getElementById("lblFieldName").innerHTML = value;
        }
    </script>

    <table cellpadding="2" cellspacing="1" border="0" width="100%" class="border">
        <tr>
            <td class="title" colspan="2" align="center">
                <asp:Label ID="lblTitle" runat="server" Text="添加字段" Font-Bold="True"></asp:Label>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft" style="width: 25%;">
                <strong>字段名称：</strong>
            </td>
            <td align="left">
                <asp:TextBox ID="txtFieldName" runat="server" MaxLength="21" onkeyup="SetLitFieldName(this.value);"
                    CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                    onblur="this.style.backgroundColor='';"></asp:TextBox>
                <br />
                <span style="color: Blue">注：字段名由字母、数字、下划线组成，并且仅能字母开头，不以下划线结尾。 例如：Content</span>
                <br />
                可以在模板中用数据源标签调用该字段内容，调用形式例如：<br />
                {PE.Field ID="数据源标签ID" fieldname="<asp:Label ID="lblFieldName" Style="color: Red;"
                    runat="server"></asp:Label>" /}
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>字段别名：</strong>
            </td>
            <td align="left">
                <asp:TextBox ID="txtFieldAliax" runat="server" CssClass="inputtext" Width="400px"
                    onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                <br />
                <span style="color: blue">例如：文章内容</span>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>字段提示：</strong>
            </td>
            <td align="left">
                <asp:TextBox ID="txtTips" runat="server" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                    onblur="this.style.backgroundColor='';"></asp:TextBox>
                <span style="color: Blue">显示在字段别名下方作为重要提示的文字</span>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>字段描述：</strong>
            </td>
            <td align="left">
                <asp:TextBox ID="txtDescription" runat="server" Height="43px" TextMode="MultiLine"
                    CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                    onblur="this.style.backgroundColor='';"></asp:TextBox>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>是否必填：</strong>
            </td>
            <td align="left">
                <asp:RadioButtonList ID="radlEnableNull" runat="server" Height="3px" RepeatDirection="Horizontal">
                    <asp:ListItem Value="True">是</asp:ListItem>
                    <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>是否在搜索表单显示：</strong>
            </td>
            <td align="left">
                <asp:RadioButtonList ID="radlEnableShowOnSearchForm" runat="server" Height="3px"
                    RepeatDirection="Horizontal">
                    <asp:ListItem Value="True" Selected="True">是</asp:ListItem>
                    <asp:ListItem Value="False">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg" id="trDisabled" runat="server">
            <td class="tdbgleft">
                <strong>是否显示在添加页面：</strong><br />
                不显示的字段将不会出现在添加页面，其值是默认值
            </td>
            <td align="left">
                <asp:RadioButtonList ID="radDisabled" runat="server" Height="3px" RepeatDirection="Horizontal">
                    <asp:ListItem Value="False" Selected="True">是</asp:ListItem>
                    <asp:ListItem Value="True">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>此字段的类型：</strong>
            </td>
            <td id="tdFieldType" runat="server" align="left">
                <table>
                    <tr>
                        <td colspan="3">
                            <strong>基本字段</strong>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButton ID="radTextType" Text="单行文本" AutoPostBack="true" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radMultipleTextType" AutoPostBack="true" Text="多行文本（不支持HTML）"
                                GroupName="radFieldType" runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radMultipleHtmlTextType" AutoPostBack="true" Text="多行文本（支持HTML）"
                                GroupName="radFieldType" runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButton ID="radListBoxType" AutoPostBack="true" Text="选项" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radNumberType" AutoPostBack="true" Text="数字" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radMoneyType" AutoPostBack="true" Text="货币" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButton ID="radDateTimeType" AutoPostBack="true" Text="日期和时间" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radLookType" AutoPostBack="true" Text="查阅项" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radLinkType" AutoPostBack="true" Text="超链接" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButton ID="radBoolType" AutoPostBack="true" Text="是/否（复选框）" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radPictureType" AutoPostBack="true" Text="图片" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radFileType" AutoPostBack="true" Text="文件" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButton ID="radColorType" AutoPostBack="true" Text="颜色代码" GroupName="radFieldType"
                                runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <table>
                                <tr>
                                    <td colspan="3">
                                        <strong>系统预定义字段</strong>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="radOperatingType" AutoPostBack="true" Text="运行平台" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radRegionType" AutoPostBack="true" Text="行政区划" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radKeywordType" AutoPostBack="true" Text="关键字" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="radContentType" AutoPostBack="true" Text="内容" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radSelectUser" AutoPostBack="true" Text="选择用户" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radMultiplePhotoType" runat="server" AutoPostBack="true" GroupName="radFieldType"
                                            OnCheckedChanged="radlFieldType_SelectedIndexChanged" Text="多图片" Visible="false" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="radLinkageType" AutoPostBack="true" Text="多级联动" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="radTitleType" AutoPostBack="true" Text="标题" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radInfoType" AutoPostBack="true" Text="虚链接" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radTemplateType" AutoPostBack="true" Text="模板" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="radSpecialType" AutoPostBack="true" Text="专题" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radNodeType" AutoPostBack="true" Text="节点" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radStatusType" AutoPostBack="true" Text="状态" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="radSkinType" AutoPostBack="true" Text="风格" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="trCMS" runat="server" visible="false">
                        <td colspan="3">
                            <table>
                                <tr>
                                    <td colspan="3">
                                        <strong>内容系统预定义字段</strong>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="radAuthorType" AutoPostBack="true" Text="作者" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radSourceType" AutoPostBack="true" Text="来源" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radDownServerType" AutoPostBack="true" Text="下载服务器" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="trGreatB2C" runat="server" visible="false">
                        <td colspan="3">
                            <table>
                                <tr>
                                    <td colspan="3">
                                        <strong>商品系统预定义字段</strong>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="radProducer" AutoPostBack="true" Text="厂商" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radTrademark" AutoPostBack="true" Text="品牌" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radProperty" AutoPostBack="true" Text="商品属性" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="radProductStyle" AutoPostBack="true" Text="商品款式" GroupName="radFieldType"
                                            runat="server" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="trOther" runat="server" visible="false">
                        <td colspan="3">
                            <table>
                                <tr>
                                    <td colspan="2">
                                        <strong>其他预定义字段</strong>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="radUserNameType" AutoPostBack="true" Text="用户名" GroupName="radFieldType"
                                            runat="server" Visible="false" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="radIPType" AutoPostBack="true" Text="IP地址" GroupName="radFieldType"
                                            runat="server" Visible="false" OnCheckedChanged="radlFieldType_SelectedIndexChanged" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tbody id="PnlText" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>最大字符数：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtTextMaxLength" Text="200" runat="server" CssClass="inputtext"
                        Width="50px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="ValgTextMaxLength" ControlToValidate="txtTextMaxLength" runat="server"
                        ErrorMessage="最大字符数超出1-255的范围！" Type="Integer" Display="Dynamic" MaximumValue="255"
                        MinimumValue="1"></asp:RangeValidator>&nbsp;<font color="red">*</font>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtTextSize" Text="30" runat="server" CssClass="inputtext" Width="50px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="ValgTextSize" ControlToValidate="txtTextSize" Type="Integer"
                        runat="server" ErrorMessage="文本框长度超出1-255的范围！" Display="Dynamic" MaximumValue="250"
                        MinimumValue="1"></asp:RangeValidator>&nbsp;<font color="red">*</font>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>验证规则：</strong>
                </td>
                <td align="left">
                    <table>
                        <tr id="RegexErrorMsg" style="display: none">
                            <td>
                                验证错误提示：
                            </td>
                            <td>
                                <asp:TextBox ID="txtRegexErrorMsg" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                                    onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DropDownList ID="ddlTextBoxRegexRule" runat="server" onchange="ChangetxtRegexRule();">
                                    <asp:ListItem Text="无" Value="" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="Email地址" Value="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:ListItem>
                                    <asp:ListItem Text="固定电话号码" Value="0?1[35][0-9]{9}|(\(\d{3,4}\)|\d{3,4}-?)?\d{7,8}(-\d{1,5})?"></asp:ListItem>
                                    <asp:ListItem Text="手机号码" Value="0?1[35][0-9]{9}|(\(\d{3,4}\)|\d{3,4}-?)?\d{7,8}(-\d{1,5})?"></asp:ListItem>
                                    <asp:ListItem Text="邮政编码" Value="\d{6}"></asp:ListItem>
                                    <asp:ListItem Text="纯数字" Value="^[0-9]*$"></asp:ListItem>
                                    <asp:ListItem Text="纯英文字母" Value="^[A-Za-z]+$"></asp:ListItem>
                                    <asp:ListItem Text="纯中文" Value="^[\u4e00-\u9fa5]+$"></asp:ListItem>
                                    <asp:ListItem Text="自定义" Value="Self"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:TextBox ID="txtRegexRule" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                                    onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtTextDefaultValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>输入法设置：</strong>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlTextIMEMode" runat="server">
                        <asp:ListItem Value="0" Selected="True">默认</asp:ListItem>
                        <asp:ListItem Value="1">启用</asp:ListItem>
                        <asp:ListItem Value="2">禁用</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <%--<pec:attachfieldcontrol id="AttachSingle" runat="server"></pec:attachfieldcontrol>--%>
        </tbody>
        <tbody id="PnlMultiText" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>显示的宽度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMultiTextWidth" Text="500" runat="server" CssClass="inputtext"
                        Width="50px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">px &nbsp;例如：500px</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>显示的高度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMultiTextRow" Text="80" runat="server" CssClass="inputtext" Width="50px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">px &nbsp;例如：80px</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMultiDefault" TextMode="MultiLine" Height="100px" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"
                        runat="server"></asp:TextBox>
                </td>
            </tr>
            <%--<:attachfieldcontrol id="AttachMulit" runat="server"></pec:attachfieldcontrol>--%>
        </tbody>
        <tbody id="PnlEditor" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>编辑器类型：</strong>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlEditorType" runat="server">
                        <asp:ListItem Value="1" Selected="True">简洁型编辑器</asp:ListItem>
                        <asp:ListItem Value="2">标准型编辑器</asp:ListItem>
                        <asp:ListItem Value="3">增强型编辑器</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>编辑器大小：</strong>
                </td>
                <td align="left">
                    宽
                    <asp:TextBox ID="txtEditorWidth" Text="600" runat="server" CssClass="inputtext" Width="50px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">px&nbsp;例如：600px</span>
                    <asp:RegularExpressionValidator ID="ValeEditorWidth" runat="server" ControlToValidate="txtEditorWidth"
                        ErrorMessage="只能输入字母数字百分号" ValidationExpression="^[a-zA-Z%0-9]*$" Display="Dynamic"></asp:RegularExpressionValidator>
                    <br />
                    高
                    <asp:TextBox ID="txtEditorHight" Text="500" runat="server" CssClass="inputtext" Width="50px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">px&nbsp;例如：350px</span>
                    <asp:RegularExpressionValidator ID="ValeEditorHight" runat="server" ControlToValidate="txtEditorHight"
                        ErrorMessage="只能输入字母数字百分号" ValidationExpression="^[a-zA-Z%0-9]*$" Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMulitHtmlDefault" TextMode="MultiLine" Height="100px" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"
                        runat="server"></asp:TextBox>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlChoice" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>每个选项：</strong>
                </td>
                <td align="left">

                    <script type="text/javascript">
                        function AddUrl() {
                            var thisurl = '选项名称' + (document.getElementById("lstChoise").length + 1) + '|选项值';
                            var url = prompt('请输入选项名称和值，中间用“|”隔开：', thisurl);
                            if (url != null && url != '') {
                                document.getElementById("lstChoise").options[document.getElementById("lstChoise").length] = new Option(url, url);
                            }
                        }
                        function ModifyUrl() {
                            if (document.getElementById("lstChoise").length == 0) return false;
                            var thisurl = document.getElementById("lstChoise").value;
                            if (thisurl == '') { alert('请先选择一个选项，再点修改按钮！'); return false; }
                            var url = prompt('请输入选项名称和值，中间用“|”隔开：', thisurl);
                            if (url != thisurl && url != null && url != '') {
                                document.getElementById("lstChoise").options[document.getElementById("lstChoise").selectedIndex] = new Option(url, url);
                            }
                        }
                        function DelUrl() {
                            if (document.getElementById("lstChoise").length == 0) return false;
                            var thisurl = document.getElementById("lstChoise").value;
                            if (thisurl == '') { alert('请先选择一个选项，再点删除按钮！'); return false; }
                            document.getElementById("lstChoise").options[document.getElementById("lstChoise").selectedIndex] = null;
                        }

                        function ChangeHiddenFieldValue() {
                            var obj = document.getElementById("hdnChoiceUrls");
                            var choiceUrl = document.getElementById("lstChoise");
                            var Default = document.getElementById('txtChoiceDefaultValue').value;
                            var bFoundMatchWithDefault = false;

                            var value = "";
                            if (choiceUrl.length < 1) {
                                alert("请添加选项！");
                                return false;
                            }

                            for (i = 0; i < choiceUrl.length; i++) {
                                if (value != "") {
                                    value = value + "$$$";
                                }
                                value = value + choiceUrl.options[i].value;

                                if (Default == choiceUrl.options[i].value.split("|")[1]) {
                                    bFoundMatchWithDefault = true;
                                }

                            }
                            obj.value = value;

                            if (Default && !bFoundMatchWithDefault) {
                                alert("“选项”域的默认值必须从指定的选项中选择。请再试一次。");
                                return false;
                            }
                            else {
                                obj.value = value;
                                return true;
                            }

                            return true;
                        }

                        function UpOrder(clientId) {
                            var sel = document.getElementById(clientId);
                            if (sel.selectedIndex >= 0) {
                                var tempValue = sel.options[sel.selectedIndex].value;
                                var tempText = sel.options[sel.selectedIndex].text;
                            } else { alert("请选择要移动的项。"); return; }

                            if (sel.selectedIndex > 0) {
                                sel.options[sel.selectedIndex].text = sel.options[sel.selectedIndex - 1].text;
                                sel.options[sel.selectedIndex - 1].text = tempText;
                                sel.options[sel.selectedIndex].value = sel.options[sel.selectedIndex - 1].value;
                                sel.options[sel.selectedIndex - 1].value = tempValue;
                                sel.selectedIndex = sel.selectedIndex - 1;
                            }
                            if (sel.onchange) {
                                sel.onchange();
                            }
                        }
                        function DownOrder(clientId) {
                            var sel = document.getElementById(clientId);
                            if (sel.selectedIndex >= 0) {
                                var tempValue = sel.options[sel.selectedIndex].value;
                                var tempText = sel.options[sel.selectedIndex].text;
                            } else { alert("请选择要移动的项。"); return; }
                            if (sel.selectedIndex < sel.options.length - 1) {
                                sel.options[sel.selectedIndex].text = sel.options[sel.selectedIndex + 1].text;
                                sel.options[sel.selectedIndex + 1].text = tempText;
                                sel.options[sel.selectedIndex].value = sel.options[sel.selectedIndex + 1].value;
                                sel.options[sel.selectedIndex + 1].value = tempValue;
                                sel.selectedIndex = sel.selectedIndex + 1;
                            }
                            if (sel.onchange) {
                                sel.onchange();
                            }
                        }
                    </script>

                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="left" style="width: 400px;">
                                <asp:HiddenField ID="hdnChoiceUrls" runat="server" />
                                <asp:ListBox ID="lstChoise" runat="server" Width="360px" Height="120px"></asp:ListBox>
                                <input type="button" class="inputbutton" name="btnUp" value="向上" onclick="UpOrder('lstChoise');" />
                                <input type="button" class="inputbutton" name="btnDown" value="向下" onclick="DownOrder('lstChoise');" />
                            </td>
                            <td align="left">
                                <input type="button" class="inputbutton" name="addurl" value="添加选项" onclick="AddUrl();" /><br />
                                <input type="button" class="inputbutton" name="modifyurl" value="修改当前选项" onclick="return ModifyUrl();" /><br />
                                <input type="button" class="inputbutton" name="delurl" value="删除当前选项" onclick="DelUrl();" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <span style="color: Green">注</span>：显示数据|保存数据，如果添加空数据可写 “无|”
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>显示选项使用：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlChoiceType" runat="server">
                        <asp:ListItem Value="1" Selected="True">单选下拉列表框</asp:ListItem>
                        <asp:ListItem Value="2">多选列表框</asp:ListItem>
                        <asp:ListItem Value="3">单选按钮</asp:ListItem>
                        <asp:ListItem Value="4">复选框</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>允许“填充” 选项：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlEnableFill" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtChoiceDefaultValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>每行显示项数：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtRepeatColumns" Text="1" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValTxtRepeatColumns" ControlToValidate="txtRepeatColumns"
                        Display="Dynamic" Operator="greaterThanEqual" Type="Integer" ValueToCompare="1"
                        runat="server" ErrorMessage="必须填写大于1的数字"></asp:CompareValidator><br />
                    <span style="color: Blue">只当类型为单选按钮或复选框时起作用</span>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlNumber" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>最小值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtNumberMinLength" runat="server" Text="" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>最大值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtNumberMaxlength" runat="server" Text="" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:CompareValidator ID="ValcNumber" runat="server" ControlToCompare="txtNumberMinLength"
                        ControlToValidate="txtNumberMaxlength" ErrorMessage="CompareValidator" Operator="GreaterThan"
                        Type="Double" Display="Dynamic">最大值不能小于或等于最小值</asp:CompareValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>小数位数：</strong>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlNumberDecimals" runat="server">
                        <asp:ListItem Value="-1" Selected="True">自动</asp:ListItem>
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtNumberDefaultValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtNumberDefaultValue"
                        ErrorMessage="请输入正确的数字！" ValidationExpression="^-?[0-9]+(\.?[0-9]{1,4})?" Display="Dynamic"></asp:RegularExpressionValidator>
                    <br />
                    <asp:CheckBox ID="chkNumberPercent" runat="server" />以百分比显示(例如：50%)
                </td>
            </tr>
        </tbody>
        <tbody id="PnlCurrency" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>最小值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCurrencyMinLength" runat="server" CssClass="inputtext" Width="50px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">例如：1.00</span>
                    <asp:RegularExpressionValidator ID="ValeCurrencyMinLength" runat="server" ControlToValidate="txtCurrencyMinLength"
                        ErrorMessage="只能输入货币字符" ValidationExpression="^[1-9]+[0-9]*(\.?[0-9]+)?|0\.0*[1-9]+0*|[1-9]$"
                        Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>最大值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCurrencyMaxLength" runat="server" CssClass="inputtext" Width="50px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:CompareValidator ID="ValCurrency" runat="server" ErrorMessage="CompareValidator"
                        ControlToCompare="txtCurrencyMinLength" ControlToValidate="txtCurrencyMaxLength"
                        Operator="GreaterThan" Type="Double" Display="Dynamic">最大值不能小于或等于最小值</asp:CompareValidator>
                    <asp:RegularExpressionValidator ID="ValeCurrencyMaxLength" runat="server" ControlToValidate="txtCurrencyMaxLength"
                        ErrorMessage="只能输入货币字符" ValidationExpression="^[1-9]+[0-9]*(\.?[0-9]+)?|0\.0*[1-9]+0*|[1-9]$"
                        Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCurrencyDefaultValue" runat="server" CssClass="inputtext" Width="50px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="ValeCurrencyDefaultValue" runat="server" ControlToValidate="txtCurrencyDefaultValue"
                        ErrorMessage="只能输入货币字符" ValidationExpression="^[1-9]+[0-9]*(\.?[0-9]+)?|0\.0*[1-9]+0*|[1-9]$"
                        Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlDateTime" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>日期和时间格式：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radioDateTimeType" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="yyyy-MM-dd" Selected="True">仅日期</asp:ListItem>
                        <asp:ListItem Value="yyyy-MM-dd HH:mm:ss">日期和时间</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="left">
                                <asp:RadioButtonList ID="radlDateTimeDefaultType" runat="server">
                                    <asp:ListItem Value="0" Selected="True">无</asp:ListItem>
                                    <asp:ListItem Value="1">当前日期</asp:ListItem>
                                    <asp:ListItem Value="2">指定日期</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td align="right" valign="bottom" width="110px">
                                <asp:TextBox ID="txtOrderDate" class="easyui-datebox" runat="server" MaxLength="50"
                                    Width="100px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlLookup" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>获取信息来自模型：</strong>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlLookupTable" runat="server" OnSelectedIndexChanged="ddlLookupTable_SelectedIndexChanged"
                        AutoPostBack="True">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>在此模型对应信息表的字段：</strong>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlLookupField" runat="server">
                    </asp:DropDownList>
                    <br />
                    <span style="color: Red">注：查阅项的字段只能是存在选定的模型对应表里面的单行文本字段</span>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlURL" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>最大字符数：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtURLMaxLength" runat="server" Text="200" CssClass="inputtext"
                        Width="50px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="ValgURLMaxLength" Type="Integer" ControlToValidate="txtURLMaxLength"
                        runat="server" ErrorMessage="超出数据范围！" Display="Dynamic" MaximumValue="255" MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtURLSize" Text="80" runat="server" CssClass="inputtext" Width="50px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="ValigURLSize" Type="Integer" ControlToValidate="txtURLMaxLength"
                        runat="server" ErrorMessage="超出数据范围！" Display="Dynamic" MaximumValue="255" MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtURLDefaultValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                    <span style="color: green">例：http://127.0.0.1/ </span>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlBoolean" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlBoolean" runat="server">
                        <asp:ListItem Value="True" Selected="True">是</asp:ListItem>
                        <asp:ListItem Value="False">否</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlImage" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>图片文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtImageTextLength" Text="30" runat="server" CssClass="inputtext"
                        Width="50px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="ValgImageTextLength" ControlToValidate="txtImageTextLength"
                        Type="Integer" runat="server" ErrorMessage="超出数据范围！" Display="Dynamic" MaximumValue="250"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否启用上传：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlIsUpload" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True" Selected="True">是</asp:ListItem>
                        <asp:ListItem Value="False">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg" id="ImageSize">
                <td class="tdbgleft">
                    <strong>允许的图片大小：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtImageSize" Text="1024" runat="server" CssClass="inputtext" Width="50px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"
                        MaxLength="12"></asp:TextBox>
                    KB <span style="color: Blue">提示：1 KB = 1024 Byte，1 MB = 1024 KB</span>
                </td>
            </tr>
            <tr class="tdbg" id="ImageType">
                <td class="tdbgleft">
                    <strong>允许的图片类型：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtImageType" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">注：允许多个类型请用“|”号分割，如：jpg|gif|bmp等等</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>上传文件名保存规则：</strong><br />
                    <span style="color: Red">可用变量： </span>
                    <br />
                    <span style="color: Blue">{$Year}：年份、{$Month}：月份<br />
                        {$Day}：日期、{$Hour}：小时<br />
                        {$Minute}：分钟、{$Second}：秒<br />
                        {$Origin}：原文件名、{$Random}：随机数</span>
                </td>
                <td>
                    <asp:DropDownList ID="ddlImageNameRule" Width="300" runat="server">
                        <asp:ListItem Text="{$Random}" Value="{$Random}"></asp:ListItem>
                        <asp:ListItem Text="{$Year}{$Month}{$Day}{$Hour}{$Minute}{$Second}" Value="{$Year}{$Month}{$Day}{$Hour}{$Minute}{$Second}"></asp:ListItem>
                        <asp:ListItem Text="{$Hour}{$Minute}{$Second}" Value="{$Hour}{$Minute}{$Second}"></asp:ListItem>
                        <asp:ListItem Text="{$Origin}" Value="{$Origin}"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddlImageNameRule"
                        ErrorMessage="文件名只能以字母、数字、下划线及可用变量组成，不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否启用Silverlight上传：</strong>
                    <br />
                    <span style="color: Blue">提示：启用Silverlight上传，可支持大文件上传，IE下效果最佳</span><br />
                    <a href="http://go.microsoft.com/fwlink/?LinkID=124807" target="_blank"><span style="color: Red">
                        Silverlight插件下载</span></a>
                </td>
                <td>
                    <asp:RadioButtonList ID="radioImageIsUseSilverlight" RepeatDirection="Horizontal"
                        runat="server">
                        <asp:ListItem Text="是" Selected="True" Value="true"></asp:ListItem>
                        <asp:ListItem Text="否" Value="false"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg" id="IsFromSelected">
                <td class="tdbgleft">
                    <strong>是否从系统已上传图片中选择：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlIsFromSelected" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg" id="UploadFiles" runat="server" style="display: none;">
                <td class="tdbgleft">
                    <strong>是否从信息已上传图片中选择：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlUploadFiles" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg" id="WsImage">
                <td class="tdbgleft">
                    <strong>图片是否加水印：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlWsImage" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg" id="Thumb">
                <td class="tdbgleft">
                    <strong>是否上传缩略图：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlThumb" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg" id="PicDefaultUrl">
                <td class="tdbgleft">
                    <strong>默认图片：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtPicDefaultUrl" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlFile" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否为下载频道控件：</strong>
                </td>
                <td align="left">
                    <asp:CheckBox ID="chkDownLoadUrl" Checked="true" runat="server" />
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>保存文件大小设置：</strong>
                </td>
                <td align="left">
                    是否保存文件大小：<asp:CheckBox ID="chkSoftSize" Checked="true" runat="server" Text="" AutoPostBack="true"
                        OnCheckedChanged="chkSoftSize_OnCheckedChanged" /><br />
                    保存字段的名称：<asp:TextBox ID="txtFileSizeField" runat="server" Width="80px" MaxLength="30"></asp:TextBox>
                    <asp:CompareValidator ID="ValcFileSizeField" runat="server" Display="Dynamic" ErrorMessage="保存文件大小的字段名不能与主字段名重复！"
                        ControlToValidate="txtFileSizeField" ControlToCompare="txtFieldName" Operator="NotEqual"
                        SetFocusOnError="True"></asp:CompareValidator>
                    <br />
                    <span style="color: Blue">注：字段名由字母、数字、下划线组成，并且仅能字母开头，不以下划线结尾。 例如：Content</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>允许的文件大小：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtFileSize" Text="1024" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"
                        MaxLength="12"></asp:TextBox>
                    KB <span style="color: Blue">提示：1 KB = 1024 Byte，1 MB = 1024 KB</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>允许的文件类型：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtFileType" runat="server" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">注：允许多个类型请用“|”号分割，如：jpg|mp3|gif|rm|rmvb等等</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>上传文件名保存规则：</strong><br />
                    <span style="color: Red">可用变量： </span>
                    <br />
                    <span style="color: Blue">{$Year}：年份、{$Month}：月份<br />
                        {$Day}：日期、{$Hour}：小时<br />
                        {$Minute}：分钟、{$Second}：秒<br />
                        {$Origin}：原文件名、{$Random}：随机数</span>
                </td>
                <td>
                    <asp:DropDownList ID="ddlFileNameRule" Width="300" runat="server">
                        <asp:ListItem Text="{$Random}" Value="{$Random}"></asp:ListItem>
                        <asp:ListItem Text="{$Year}{$Month}{$Day}{$Hour}{$Minute}{$Second}" Value="{$Year}{$Month}{$Day}{$Hour}{$Minute}{$Second}"></asp:ListItem>
                        <asp:ListItem Text="{$Hour}{$Minute}{$Second}" Value="{$Hour}{$Minute}{$Second}"></asp:ListItem>
                        <asp:ListItem Text="{$Origin}" Value="{$Origin}"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlFileNameRule"
                        ErrorMessage="文件名只能以字母、数字、下划线及可用变量组成，不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否启用Silverlight上传：</strong>
                    <br />
                    <span style="color: Blue">提示：启用Silverlight上传，可支持大文件上传，IE下效果最佳</span><br />
                    <a href="http://go.microsoft.com/fwlink/?LinkID=124807" target="_blank"><span style="color: Red">
                        Silverlight插件下载</span></a>
                </td>
                <td>
                    <asp:RadioButtonList ID="radFileIsUseSilverlight" RepeatDirection="Horizontal" runat="server">
                        <asp:ListItem Text="是" Selected="True" Value="true"></asp:ListItem>
                        <asp:ListItem Text="否" Value="false"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>地址前缀：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtFileUrlPrdfix" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';">下载地址</asp:TextBox>
                    <br />
                    <span style="color: Green">例：下载地址</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtFileDefaultValue" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <br />
                    <span style="color: Green">例：下载地址1|http://127.0.0.1/UploadFile/Soft/2007/2/moivename.rmvb</span>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlColor" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认颜色值：</strong>
                </td>
                <td align="left">
                    <input id="txtColorDefault" name="txtColorDefault" type="text" maxlength="7" value="#ffcc00" class="inputtext iColorPicker" runat="server" />
                </td>
            </tr>
        </tbody>
        <tbody id="PnlAuthor" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtAuthorSize" Text="50" runat="server" MaxLength="200" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="ValrAuthorSize" ControlToValidate="txtAuthorSize" Type="Integer"
                        runat="server" ErrorMessage="不能超过200字符长度！" Display="Dynamic" MaximumValue="200"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtAuthorDefaultValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否保存上次记录：</strong><br />
                    启用保存上次记录,下次添加信息时会自动出现上次填写值
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radAuthorIsPCookie" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlSource" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtSourceSize" Text="50" runat="server" MaxLength="200" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="ValrSourceSize" ControlToValidate="txtSourceSize" Type="Integer"
                        runat="server" ErrorMessage="不能超过200字符长度！" Display="Dynamic" MaximumValue="200"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtSourceDefaultValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否保存上次记录：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radSourceIsPCookie" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlKeyword" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtKeywordSize" Text="50" runat="server" MaxLength="200" CssClass="inputtext"
                        Width="50px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="ValrKeywordSize" ControlToValidate="txtKeywordSize" Type="Integer"
                        runat="server" ErrorMessage="不能超过200字符长度！" Display="Dynamic" MaximumValue="200"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtKeywordDefaultValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否保存上次记录：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radKeywordIsPCookie" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlOperatingSystem" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>分行键入&nbsp;&nbsp;<br />
                        每个平台选项：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOperatingSystemSelectItem" runat="server" Height="100px" TextMode="MultiLine"
                        Wrap="false" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: blue">注：一行一个默认项</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOperatingSystemSize" Text="50" runat="server" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="ValrOperatingSystemSize" ControlToValidate="txtOperatingSystemSize"
                        Type="Integer" runat="server" ErrorMessage="不能超过200字符长度！" Display="Dynamic" MaximumValue="200"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOperatingSystemDefaultValue" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"
                        runat="server"></asp:TextBox>
                    <span style="color: green">例：Win2000/XP/Win2003</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否保存上次记录：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radOperatingIsPCookie" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlProducer" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtProducerSize" Text="50" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidatorProducer" ControlToValidate="txtProducerSize"
                        Type="Integer" runat="server" ErrorMessage="不能超过200字符长度！" Display="Dynamic" MaximumValue="200"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtProducerDefaultValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否保存上次记录：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radProducerIsPCookie" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlTrademark" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtTrademarkSize" Text="50" runat="server" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidatorTrademark" ControlToValidate="txtTrademarkSize"
                        Type="Integer" runat="server" ErrorMessage="不能超过200字符长度！" Display="Dynamic" MaximumValue="200"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtTrademarkDefaultValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否保存上次记录：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radTrademarkIsPCookie" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlContent" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>编辑器大小：</strong>
                </td>
                <td align="left">
                    宽
                    <asp:TextBox ID="txtContentEditorWidth" Text="600" runat="server" CssClass="inputtext"
                        Width="50px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">px&nbsp;例如：600px</span>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtContentEditorWidth"
                        ErrorMessage="只能输入字母数字百分号" ValidationExpression="^[a-zA-Z%0-9]*$" Display="Dynamic"></asp:RegularExpressionValidator>
                    <br />
                    高
                    <asp:TextBox ID="txtContentEditorHight" Text="500" runat="server" CssClass="inputtext"
                        Width="50px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">px&nbsp;例如：350px</span>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtContentEditorHight"
                        ErrorMessage="只能输入字母数字百分号" ValidationExpression="^[a-zA-Z%0-9]*$" Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>允许的文件大小：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtUploadSize" Text="" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"
                        MaxLength="12"></asp:TextBox>
                    KB <span style="color: Blue">提示：1 KB = 1024 Byte，1 MB = 1024 KB</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>允许上传的图片类型：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtUploadImpType" runat="server" Text="jpg|gif|jpeg|png|bmp" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">注：允许多个类型请用“|”号分割，如：jpg|gif|jpeg|png|bmp等等</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>允许上传的媒体类型：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtUploadFlashType" runat="server" Text="swf|flv|rm|rmvb|mp3|mpeg|avi|mpeg2|wmv|midi"
                        CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">注：允许多个类型请用“|”号分割，如：swf|flv|rm|rmvb|mp3|mpeg|avi|mpeg2|wmv|midi等等</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>允许上传的附件类型：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtUploadAnnexType" runat="server" Text="txt|doc|rar|zip" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">注：允许多个类型请用“|”号分割，如：txt|doc|rar|zip等等</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>上传文件名保存规则：</strong><br />
                    <span style="color: Red">可用变量： </span>
                    <br />
                    <span style="color: Blue">{$Year}：年份、{$Month}：月份<br />
                        {$Day}：日期、{$Hour}：小时<br />
                        {$Minute}：分钟、{$Second}：秒<br />
                        {$Origin}：原文件名、{$Random}：随机数</span>
                </td>
                <td>
                    <asp:DropDownList id="ddlContentFileNameRule" width="300" runat="server">
                        <asp:ListItem Text="{$Random}" Value="{$Random}"></asp:ListItem>
                        <asp:ListItem Text="{$Year}{$Month}{$Day}{$Hour}{$Minute}{$Second}" Value="{$Year}{$Month}{$Day}{$Hour}{$Minute}{$Second}"></asp:ListItem>
                        <asp:ListItem Text="{$Hour}{$Minute}{$Second}" Value="{$Hour}{$Minute}{$Second}"></asp:ListItem>
                        <asp:ListItem Text="{$Origin}" Value="{$Origin}"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlContentFileNameRule"
                        ErrorMessage="文件名只能以字母、数字、下划线及可用变量组成，不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>图片是否加水印：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlContentWsImage" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否上传缩略图：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlContentThumb" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlVirtualLink" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>显示的宽度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtVirtualLinkWidth" Text="500" runat="server" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">px &nbsp;例如：500px</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>显示的高度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtVirtualLinkRow" Text="80" runat="server" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">px &nbsp;例如：80px</span>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlDownServer" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtDownServerWidth" Text="50" runat="server" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidatorDownServerWidth" ControlToValidate="txtDownServerWidth"
                        Type="Integer" runat="server" ErrorMessage="不能超过100字符长度！" Display="Dynamic" MaximumValue="1000"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtDownServerDefaultValue" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: green">例：$$$下载服务器名|下载服务器ID</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否保存上次记录：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radDownServerIsPCookie" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlRegion" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>排列方式：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radRegionDirection" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="true">横向</asp:ListItem>
                        <asp:ListItem Value="false" Selected="True">纵向</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>显示方式：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radRegionShow" runat="server" RepeatDirection="Vertical">
                        <asp:ListItem Value="1">国家+省</asp:ListItem>
                        <asp:ListItem Value="2">国家+省+市</asp:ListItem>
                        <asp:ListItem Value="3" Selected="True">国家+省+市+县</asp:ListItem>
                        <asp:ListItem Value="4">省+市</asp:ListItem>
                        <asp:ListItem Value="5">省+市+县</asp:ListItem>
                        <asp:ListItem Value="6">市+县</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>显示方式默认设置：</strong>
                </td>
                <td align="left">
                    <uc1:DynamicRegion ID="drShowStyleSet" runat="server" />
                </td>
            </tr>
        </tbody>
        <tbody id="PnlSpecial" visible="false" runat="server">
        </tbody>
        <tbody id="PnlTitle" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>最大字符数：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtTitleMaxLength" Text="200" runat="server" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidatorTitleMaxLength" ControlToValidate="txtTitleMaxLength"
                        runat="server" ErrorMessage="超出数据范围！" Type="Integer" Display="Dynamic" MaximumValue="255"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtTitleSize" Text="30" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidatorTitleSize" ControlToValidate="txtTitleSize"
                        Type="Integer" runat="server" ErrorMessage="超出数据范围！" Display="Dynamic" MaximumValue="250"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtTitleDefaultValue" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否启用检测重复值：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radCheckTitleValue" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否自动生成字母标题：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radCreatePinyinTitle" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlMultiplePhoto" visible="false" runat="server">
            <%--<script type="text/javascript">
                function SetMPExtendedListBox(id) { 
                    if(document.getElementById(id + "_0").checked == true) {
                        document.getElementById("MPUpOrderBtnValueTr").style.display = '';
                        document.getElementById("MPDownOrderBtnValueTr").style.display = '';
                    }
                    else {
                        document.getElementById("MPUpOrderBtnValueTr").style.display = 'none';
                        document.getElementById("MPDownOrderBtnValueTr").style.display = 'none';
                    }
                }
            </script>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否启用排序</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="RblMPEnableOrder" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg" id="MPUpOrderBtnValueTr" style="display:none">
                <td class="tdbgleft">
                    <strong>向上排序默认值</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMPUpOrderBtnValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox><br />
                    <span style="color: Blue">注：向上排序按钮的默认值</span>
                </td>
            </tr>
            <tr class="tdbg" id="MPDownOrderBtnValueTr" style="display:none">
                <td class="tdbgleft">
                    <strong>向下排序默认值</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMPDownOrderBtnValue" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox><br />
                    <span style="color: Blue">注：向下排序按钮的默认值</span>
                </td>
            </tr>--%>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>图片是否加水印：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlMWsImage" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>允许的文件大小：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMultiPhotoSize" Text="1024" runat="server" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"
                        MaxLength="12"></asp:TextBox>
                    KB <span style="color: Blue">提示：1 KB = 1024 Byte，1 MB = 1024 KB</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>允许的文件类型：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMultiPhotoExt" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <span style="color: Blue">注：允许多个类型请用“|”号分割，如：jpg|mp3|gif|rm|rmvb等等</span>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>上传文件名保存规则：</strong><br />
                    <span style="color: Red">可用变量： </span>
                    <br />
                    <span style="color: Blue">{$Year}：年份、{$Month}：月份<br />
                        {$Day}：日期、{$Hour}：小时<br />
                        {$Minute}：分钟、{$Second}：秒<br />
                        {$Origin}：原文件名、{$Random}：随机数</span>
                </td>
                <td>
                    <asp:DropDownList ID="ddlMultiPhotoFileNameRule" Width="300" runat="server">
                        <asp:ListItem Text="{$Random}" Value="{$Random}"></asp:ListItem>
                        <asp:ListItem Text="{$Year}{$Month}{$Day}{$Hour}{$Minute}{$Second}" Value="{$Year}{$Month}{$Day}{$Hour}{$Minute}{$Second}"></asp:ListItem>
                        <asp:ListItem Text="{$Hour}{$Minute}{$Second}" Value="{$Hour}{$Minute}{$Second}"></asp:ListItem>
                        <asp:ListItem Text="{$Origin}" Value="{$Origin}"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtMultiPhotoFileNameRule"
                        ErrorMessage="文件名只能以字母、数字、下划线及可用变量组成，不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否启用Silverlight上传：</strong>
                    <br />
                    <span style="color: Blue">提示：启用Silverlight上传，可支持大文件上传，IE下效果最佳</span><br />
                    <a href="http://go.microsoft.com/fwlink/?LinkID=124807" target="_blank"><span style="color: Red">
                        Silverlight插件下载</span></a>
                </td>
                <td>
                    <asp:RadioButtonList ID="radMultiPhotoIsUseSilverlight" RepeatDirection="Horizontal"
                        runat="server">
                        <asp:ListItem Text="是" Selected="True" Value="true"></asp:ListItem>
                        <asp:ListItem Text="否" Value="false"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMultiPhotoDefaultValue" runat="server" CssClass="inputtext" Width="400px"
                        onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox><br />
                    <span style="color: Green">例：图片地址1|Photo/2007/12/2007122209084503640.jpg</span>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlProperty" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft" style="width: 180px">
                    <asp:Label ID="lblProperty" runat="server" Font-Bold="True" Text="商品属性值："></asp:Label>&nbsp;
                </td>
                <td align="left" class="tdbg">
                    <asp:TextBox ID="txtProperty" runat="server" Height="100px" TextMode="MultiLine"
                        CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" Wrap="false"></asp:TextBox>
                    <br />
                    <asp:Label ID="lblPropertyDesc" runat="server" Text="注：(1)商品属性值之间以“回车”分隔，属性值中不能带有半角的“$”、“|”、“*”字符！"
                        ForeColor="Blue"></asp:Label>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlSelectUser" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>文本框长度：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtSelectUserSize" Text="50" runat="server" CssClass="inputtext"
                        Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValSelectUserSize" ControlToValidate="txtSelectUserSize"
                        Type="Integer" runat="server" ErrorMessage="不能超过200字符长度！" Display="Dynamic" MaximumValue="200"
                        MinimumValue="1"></asp:RangeValidator>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>默认值：</strong>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtSelectUserDefault" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否保存上次记录：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radSelectUserIsPCookie" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlLinkage" runat="server" visible="false">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>设置联动项：</strong>
                </td>
                <td align="left">
                    <div style="margin: 5px 15px;">
                        <input id="btnAdd" type="button" value="添加联动" class='btnstyle_blue' style="width: 70px;" onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'" />
                    </div>
                    <div style="margin: 5px 0px; display: inline;">
                        <ul id="Linkage">
                            <li id="1" style="float: left; list-style: none; margin-bottom: 5px;">
                                <input type='button' value='添加项' onclick='AddOption(1);' class='btnstyle_blue' style="width: 60px;" onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'" />
                                <input type='button' value='移除项' onclick='RemoveValue(1);' class='btnstyle_blue' style="width: 60px;" onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'" />
                                <div>
                                    <select size='4' style='width: 235px; height: 120px;'>
                                    </select>
                                </div>
                            </li>
                        </ul>
                    </div>
                    <div style="clear: both; margin: 15px;">
                        <span style="color: Green;">提示</span>：双击选项可修改选项值</div>
                    <asp:HiddenField ID="hdnLinkageValue" runat="server" Value="[]" />

                    <script type="text/javascript">
                        var date = $("#hdnLinkageValue").val();
                        $(function() {
                            $("#btnAdd").click(function() { AddLinkage(); date += "|[]"; });
                            $("#1 select").click(function() {
                                
                                (1);
                            }).dblclick(function() {
                                var index = $(this).get(0).selectedIndex;
                                if (index > -1) {
                                    ModifyOption($(this));
                                }
                            });
                            $("#ddlLinkageSplit").change(function() {
                                $("#SpnExample span").html($(this).val());
                            });
                            InitLinkage();
                        });

                        function InitLinkage() {
                            if (date != "[]") {
                                var array = date.split("|");
                                var arrValue = $("#hdnLinkageDefault").val().split("|");
                                for (var i = 0; i < array.length; i++) {
                                    var id = i + 1;
                                    var objJson = eval("(" + array[i] + ")");
                                    if (id == 1) {
                                        for (var p1 in objJson) {
                                            var temp = objJson[p1].key + "|" + objJson[p1].value;
                                            AddValue(1, temp, temp);
                                        }
                                    } else {
                                        if ($("#" + id).length == 0) {
                                            AddLinkage();
                                        }
                                    }
                                }
                            }

                            $("#SpnExample span").html($("#DropLinkageSplit").val());
                            if ($("#chkLinkageDefault").attr("checked")) {
                                for (var i = 0; i < array.length; i++) {
                                    if (i < arrValue.length) {
                                        if (i > 0) {
                                            BindLinkage(i);
                                        }

                                        var temp = eval("(" + array[i] + ")");
                                        for (var j in temp) {
                                            if (i == 0) {
                                                if (temp[j].value == arrValue[i]) {
                                                    $("#" + (i + 1) + " select").val(temp[j].key + "|" + temp[j].value);
                                                }
                                            } else {
                                                for (var k in temp[j].value) {
                                                    if (temp[j].value[k].value == arrValue[i]) {
                                                        $("#" + (i + 1) + " select").val(temp[j].value[k].key + "|" + temp[j].value[k].value);
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }

                        // 添加联动项
                        function AddLinkage() {
                            var id = $("#Linkage li").length + 1;
                            var text = "<li id='" + id + "' style='float:left;list-style:none;margin-bottom:5px;'>";
                            text += "<input type='button' value='添加项' onclick='AddOption(" + id + ");' class='btnstyle_blue' Style=\"width: 60px;\" onmouseover=\"this.className='btnstyle_blue_over'\" onmouseout=\"this.className='btnstyle_blue'\"/>&nbsp;&nbsp;";
                            text += "<input type='button' value='移除项' onclick='RemoveValue(" + id + ");' class='btnstyle_blue' Style=\"width: 60px;\" onmouseover=\"this.className='btnstyle_blue_over'\" onmouseout=\"this.className='btnstyle_blue'\"/>&nbsp;&nbsp;";
                            text += "<input type='button' value='删除联动' onclick='DeleteLinkage(" + id + ");' class='btnstyle_blue' Style=\"width: 70px;\" onmouseover=\"this.className='btnstyle_blue_over'\" onmouseout=\"this.className='btnstyle_blue'\"/>";
                            text += "<div><select size='4' style='width:235px;height:120px;'></select></div></li>";
                            $(text).find("select").click(function() { BindLinkage(id); }).end().appendTo("#Linkage");
                            $("#" + id + " select").dblclick(function() {
                                var index = $(this).get(0).selectedIndex;
                                if (index > -1) {
                                    ModifyOption($(this));
                                }
                            });

                            Save();
                        }

                        function DeleteLinkage(id) {
                            if (confirm("确定删除此项？关联项将一起被删除。")) {
                                $("#" + id).nextAll().remove().end().remove();
                            }

                            var val = "";
                            var tempArray = date.split("|");
                            for (var i = 0; i < $("#Linkage li select").length; i++) {
                                if (val != "") {
                                    val += "|";
                                }

                                val += tempArray[i];
                            }

                            date = val;
                            Save();
                        }

                        // 绑定列表
                        function BindLinkage(id) {
                            if ($("#" + id).next().length > 0) {
                                var nextId = "#" + (id + 1);
                                if ($("#" + id + " select").get(0).selectedIndex != -1) {
                                    var selectValue = $("#" + id + " select").val().split("|")[0];
                                    var obj = eval("(" + date.split("|")[id] + ")");
                                    $(nextId + " select option").each(function() { $(this).remove(); });
                                    var value = Traversal($("#" + id + " select").val().split("|")[0], eval("(" + date.split("|")[id] + ")"));
                                    for (var index in value) {
                                        var temp = value[index].key + "|" + value[index].value;
                                        AddValue(id + 1, temp, temp);
                                    }
                                }
                            }

                            $("#" + id).next().nextAll().each(function() {
                                $(this).find("option").each(function() {
                                    $(this).remove();
                                });
                            });
                            Save();
                        }

                        // 根据传入值及json对象查找,返回json对象
                        function Traversal(text, obj) {
                            for (var index in obj) {
                                if (text == obj[index].key) {
                                    return obj[index].value;
                                }
                            }
                        }

                        function AddOption(id) {
                            var obj = "#" + id;
                            var index = $(obj + " select option").length + 1;
                            var thisurl = '选项名称' + index + '|选项值';
                            var url = prompt('请输入选项名称和值，中间用“|”隔开：', thisurl);
                            if (url != null && url != '') {
                                if (url.split("|").length == 1) {
                                    url += "|" + url;
                                }

                                if (id > 1) {
                                    if ($("#" + (id - 1) + " select option:selected").length == 0) {
                                        alert("请选择父项");
                                        return;
                                    }
                                }

                                var b = false;
                                $(obj + " select option").each(function() {
                                    if ($(this).val().split("|")[0] == url.split("|")[0]) {
                                        b = true;
                                    }
                                });

                                if (b) {
                                    alert("不能添加重复项");
                                    return;
                                }

                                AddValue(id, url, url, false);
                                var temp = url.split("|");
                                OperateOption(id, temp[0], temp[temp.length - 1], "add");
                            }
                        }

                        function ModifyOption(obj) {
                            var op = obj.get(0).selectedIndex;
                            var thisurl = obj.val();
                            var url = prompt('请输入选项名称和值，中间用“|”隔开：', thisurl);
                            if (url != null && url != '') {
                                if (url.split("|").length == 1) {
                                    url += "|" + url;
                                }

                                var b = false;
                                obj.find("option").each(function(index) {
                                    if (index != op) {
                                        if ($(this).val().split("|")[0] == url.split("|")[0]) {
                                            b = true;
                                        }
                                    }
                                });

                                if (b) {
                                    alert("修改失败，此项已重复");
                                    return;
                                }

                                var index = obj.get(0).selectedIndex;
                                obj[0].options[index].text = url;
                                obj[0].options[index].value = url;
                                var arr = url.split("|");
                                var id = obj.parent().parent().attr("id");
                                var current = eval("(" + date.split("|")[id - 1] + ")");
                                if (id == 1) {
                                    for (var i in current) {
                                        if (current[i].key == thisurl.split("|")[0]) {
                                            current[i].key = arr[0];
                                            current[i].value = arr[arr.length - 1];
                                        }
                                    }
                                } else {
                                    var pre = obj.parent().parent().prev().find("select").val().split("|")[0];
                                    for (var i in current) {
                                        if (current[i].key == pre) {
                                            for (var j in current[i].value) {
                                                if (current[i].value[j].key == thisurl.split("|")[0]) {
                                                    current[i].value[j].key = arr[0];
                                                    current[i].value[j].value = arr[arr.length - 1];
                                                }
                                            }
                                        }
                                    }
                                }

                                SetValue(id - 1, current, date.split("|"));
                                current = eval("(" + date.split("|")[id] + ")");
                                for (var i in current) {
                                    if (current[i].key == thisurl.split("|")[0]) {
                                        current[i].key = arr[0];
                                    }
                                }

                                SetValue(id, current, date.split("|"));
                            }
                        }

                        // 添加项
                        function AddValue(id, text, value) {
                            var obj = "#" + id;
                            var option = new Option(text, value);
                            $(obj + " select")[0].options[$(obj + " select option").length] = option;
                        }

                        function RemoveValue(id) {
                            var currentId = "#" + id + " select option:selected";
                            if ($(currentId).length > 0) {
                                var del = $(currentId).val().split("|");
                                $(currentId).remove();
                                $("#" + id).nextAll().find("select option").each(function() {
                                    $(this).remove();
                                });

                                OperateOption(id, del[0], del[del.length - 1], "delete");
                            }
                        }

                        function OperateOption(id, text, value, operate) {
                            var tempArray = date.split("|");
                            var current = eval("(" + tempArray[id - 1] + ")");
                            if (operate == "add") {
                                if (id == 1) {
                                    current.push(eval("({key:'" + text + "',value:'" + value + "'})"));
                                } else {
                                    var exists = false;
                                    var selectedValue = $("#" + (id - 1) + " select").val().split("|")[0];
                                    for (var i in current) {
                                        if (current[i].key == selectedValue) {
                                            exists = true;
                                            current[i].value.push(eval("({key:'" + text + "',value:'" + value + "'})"));
                                            break;
                                        }
                                    }

                                    if (!exists) {
                                        var v = "{key:'" + selectedValue + "',value:[{key:'" + text + "',value:'" + value + "'}]}";
                                        current.push(eval("(" + v + ")"));
                                        $("#t2").html(JsonToString(current));
                                    }
                                }
                            } else if (operate == "delete") {
                                var b = false;
                                if (id == 1) {
                                    for (var i in current) {
                                        if (current[i].key == text) {
                                            b = true;
                                            break;
                                        }
                                    }

                                    if (b) {
                                        current.splice(i, 1);
                                    }
                                } else {
                                    var selectedValue = $("#" + (id - 1) + " select").val().split("|")[0];
                                    for (var i in current) {
                                        if (selectedValue == current[i].key) {
                                            for (var j in current[i].value) {
                                                if (current[i].value[j].key == text) {
                                                    b = true;
                                                    break;
                                                }
                                            }

                                            if (b) {
                                                current[i].value.splice(j, 1);
                                            }
                                        }
                                    }
                                }

                                tempArray = Del(id, text, tempArray);
                            }

                            SetValue(id - 1, current, tempArray);
                        }

                        function Del(id, text) {
                            var current = eval("(" + date.split("|")[id] + ")");
                            var b = false;
                            for (var i in current) {
                                if (current[i].key == text) {
                                    b = true;
                                    for (var j in current[i].value) {
                                        Del(id + 1, current[i].value[j].key);
                                    }

                                    break;
                                }
                            }

                            if (b) {
                                current.splice(i, 1);
                            }

                            SetValue(id, current, date.split("|"));
                            return date.split("|");
                        }

                        function JsonToString(o) {
                            var arr = [];
                            for (var i in o) {
                                arr.push(Cnv(o[i]));
                            }

                            return '[' + arr.join(',') + ']';
                        }

                        function Cnv(o) {
                            var str = "";
                            var p = "{key:'" + o.key + "',";
                            if (typeof o.value == 'object' && o.value != null) {
                                var arr = [];
                                for (var i = 0; i < o.value.length; i++) {
                                    arr.push("{key:'" + o.value[i].key + "',value:'" + o.value[i].value + "'}");
                                }

                                str += p + "value:" + "[" + arr.join(',') + "]}";
                            } else {
                                str += p + "value:'" + o.value + "'}";
                            }

                            return str;
                        }

                        function SetValue(id, objJson, tempArray) {
                            var val = "";
                            for (var i = 0; i < tempArray.length; i++) {
                                if (val != "") {
                                    val += "|";
                                }

                                if (i == id) {
                                    val += JsonToString(objJson);
                                } else {
                                    val += tempArray[i];
                                }
                            }

                            date = val;
                            Save();
                        }

                        function Save() {
                            $("#hdnLinkageValue").val(date);

                            // 默认值
                            var obj = $("#hdnLinkageDefault");
                            obj.val("");
                            $("#Linkage li select").each(function() {
                                if (obj.val() != "") {
                                    obj[0].value += "|";
                                }

                                if ($(this).find("option:selected").length > 0) {
                                    var temp = $(this).val().split("|");
                                    obj[0].value += temp[temp.length - 1];
                                }
                            });
                        }
                    </script>

                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>设置默认值：</strong>
                </td>
                <td align="left">
                    <asp:HiddenField ID="hdnLinkageDefault" runat="server" />
                    <asp:CheckBox ID="chkLinkageDefault" runat="server" Text="启用默认值" />
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>显示方式：</strong>
                </td>
                <td>
                    <asp:RadioButtonList ID="RbtnLinkageShowType" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="1" Selected="True">横向显示</asp:ListItem>
                        <asp:ListItem Value="0">纵向显示</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>显示时使用的分隔符：</strong>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlLinkageSplit" runat="server" Width="100">
                        <asp:ListItem Value="">无</asp:ListItem>
                        <asp:ListItem Value=",">逗号(,)</asp:ListItem>
                        <asp:ListItem Value="-">减号(-)</asp:ListItem>
                        <asp:ListItem Value="/">斜杠(/)</asp:ListItem>
                        <asp:ListItem Value="\">反斜杠(\)</asp:ListItem>
                    </asp:DropDownList>
                    <span style="color: Green;">如</span>：<span id="SpnExample">一级选项<span></span>二级选项<span></span>三级选项</span>
                </td>
            </tr>
        </tbody>
        <tbody id="PnlFunctions" visible="false" runat="server">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否启用站内链接功能：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlSiteLink" runat="server" Height="3px" RepeatDirection="Horizontal">
                        <asp:ListItem Value="False" Selected="True">是</asp:ListItem>
                        <asp:ListItem Value="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否启用字符过滤功能：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlCharFilter" runat="server" Height="3px" RepeatDirection="Horizontal">
                        <asp:ListItem Value="False" Selected="True">是</asp:ListItem>
                        <asp:ListItem Value="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否启用字符屏蔽功能：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlCharShield" runat="server" Height="3px" RepeatDirection="Horizontal">
                        <asp:ListItem Value="False" Selected="True">是</asp:ListItem>
                        <asp:ListItem Value="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="PhlFilter" runat="server" visible="false">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>是否属于筛选字段：</strong>
                </td>
                <td align="left">
                    <asp:RadioButtonList ID="radlEnableFilter" runat="server" Height="3px" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">是</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                    </asp:RadioButtonList>
                    <span style="color: Blue">注：目前只支持“单行文本”和“选项”类型作为筛选字段</span>
                </td>
            </tr>
        </tbody>
        <tbody runat="server" id="PnlRoleList">
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>禁止设置该字段值的会员组：</strong>
                </td>
                <td align="left">
                    <asp:CheckBoxList ID="chkGroupList" runat="server" RepeatDirection="Horizontal" RepeatColumns="4"
                        Width="500px">
                    </asp:CheckBoxList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="tdbgleft">
                    <strong>禁止设置该字段值的角色：</strong>
                </td>
                <td align="left">
                    <asp:CheckBoxList ID="chkRoleList" runat="server" RepeatDirection="Horizontal" RepeatColumns="4"
                        Width="500px">
                    </asp:CheckBoxList>
                </td>
            </tr>
        </tbody>
        <tr class="tdbgbottom">
            <td colspan="2">
                <asp:Button ID="btnSubmit" Text="保存字段" OnClick="BtnSubmit_Click" runat="server" class="btnstyle_blue"
                    Style="width: 70px;" onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'" />&nbsp;&nbsp;
                <input type="button" name="btnReturnList" value="返回字段管理" class="btnstyle_blue" id="btnReturnList"
                    style="width: 100px;" onmouseover="this.className='btnstyle_blue_over'" onclick="ReturnList();"
                    onmouseout="this.className='btnstyle_blue'" />
            </td>
        </tr>
    </table>
    </form>
    <asp:Literal ID="litScript" runat="server"></asp:Literal>
</body>
</html>
